//
//  DataFactory.h
//  Ghac 4S
//
//  Created by apple on 11-9-2.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DataProvideProtocol.h"
#pragma once
#define DF_SOURCETYPE_LOCAL     @"local"
#define DF_SOURCETYPE_NETWORK   @"network"
@class          DataFactory;
@class          DataProvide;
static          DataFactory* g_dataFactory = Nil;
@interface      DataFactory : NSObject <DataProvideProtocol>
{
    id<DataProvideProtocol>             m_delegate;
    NSString*                           m_currentType;
    NSString*                           m_currentWay;
    DataProvide*                        m_dataProvider;
    NSMutableDictionary*                m_plistData;
}
@property (nonatomic, copy) NSString*           orderType;
-(DataProvide*)            produceProviderWithDelegate:(id<DataProvideProtocol>)delegate;
-(void)                                         askDatas:(NSString*)type;
//-(void)                                         askForData:(NSString*)type byWay:(NSString*)way;
+(DataFactory*)                                 sharedDataFactory;
@end
